Maximum likelihood estimation
Definition
Maximum likelihood estimation (MLE) is a popular mechanism which is used to estimate the model parameters of a regression model.
In other words, it always first compute the probability("how likely") of a specific data point given a distribution/model, and then seeks for the distribution/model parameters that can maximize the total probabilities of all data points.
Actually, what is likelihood?
A likelihood function is numerically equal to a conditional probability, but is always a function of the variable after the “|” sign.
Implementation
I put MLE applications into two categories:
-
Easy and intuitive: to estimate the parameters of a distribution
The key steps are:
1. formulate PDF of the distribution
e.g.
$$ P(x_i|\theta) = \mathcal{N}(x_i,\mu,\sigma) = \frac{1}{\sqrt {2 \pi }\sigma} e^{ - \frac{(x-\mu)^2}{2\sigma
{ #2}
}}$$
2. compute the product of the likelihood of all data points
$$L(\theta)=L(\mu, \sigma) = P(X|\mu,\sigma)=\prod_i^n \mathcal{N}(x_i,\mu,\sigma)$$ -
More analytic processes: to estimate the parameters of a model
The key steps are:
1. formulate the conditional probability
$$P(y_i|x_i, theta) = f(x_i) $$
2. compute the product of the likelihood of all y values
$$L(\theta) = P(Y|X, \theta) = \prod_i^n P(y_i|x_i, theta)$$
Examples
Distributions
Normal distribution
- formulate PDF of the distribution
- compute the product of the likelihood of all data points
Binomial distribution
- formulate PDF of the distribution
- compute the product of the likelihood of all data points
Regressions
Linear regression
- formulate the conditional probability
for a linear regression, we have:
e.g., if the noise idd. a normal distribution:
then the y idd. also a normal distribution:
- compute the product of the likelihood of all y values
Logistic regression (here using categorical data)
- formulate the conditional probability
for a logitstic function representing categorical data ("A" or "B"), we have probability of "A":
- compute the product of the likelihood of all y values